#include <jni.h>
#include <string>

#define WHISPER_VERSION "v1.7.6"

extern "C" JNIEXPORT jstring JNICALL
Java_cn_nexttec_lib_1whisper_WhisperManager_stringFromJNI(
        JNIEnv* env,
        jobject /* this */) {
    std::string hello = "Hello from C++";
    return env->NewStringUTF(hello.c_str());
}

// 简单返回版本号，先验证 JNI 正常
extern "C" JNIEXPORT jstring JNICALL
Java_cn_nexttec_lib_1whisper_WhisperManager_nativeGetVersion(
        JNIEnv *env,
        jobject /* this */) {
    return env->NewStringUTF(WHISPER_VERSION);
}

